package com.tequila.core.dao;

import com.tequila.domain.dto.CardCouponProductDto;
import com.tequila.domain.entity.CardCouponProduct;
import com.tequila.domain.query.CardCouponProductQuery;

import java.util.List;

public interface CardCouponProductDao {
    CardCouponProduct queryById(Long id);

    List<CardCouponProductDto> queryByIdList(List<Long> idList);

    List<CardCouponProductDto> queryListByParam(CardCouponProductQuery query);

    List<CardCouponProductDto> queryPageListByParam(CardCouponProductQuery query);

    int queryPageCountByParam(CardCouponProductQuery query);

    int insert(CardCouponProduct entity);

    int insertSelective(CardCouponProduct entity);

    int updateById(CardCouponProduct param);

    int updateSelectiveById(CardCouponProduct param);

    int deleteById(Long id);

    int deleteByIdList(List<Long> idList);
}